﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Lab1.Classes
{
    public class Bank : SyncObject
    {
        public int MoneyOnAccount { get; set; }

        public Bank(IEngine engine) : base(engine)
        {
            Name = "Банк";
            Queues.Add(new SyncQueue() { Sender = this, Receiver = Engine.Shop });
            Queues.Add(new SyncQueue() { Sender = this, Receiver = Engine.Customer });
        }
    }
}
